package com.github.binarywang.demo.wx.cp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

/**
 * created by lanxinghua@2dfire.com on 2020/2/17
 */
@Controller
@RequestMapping("/page")
public class PageController {


    @GetMapping(value = "/{router}/{entityId}")
    public String test(Model model,
                       @RequestParam(name = "token", required = false) String token,
                       @PathVariable String entityId,
                       @PathVariable String router) {
        model.addAttribute("router", router);
        model.addAttribute("token", token);
        model.addAttribute("entityId", entityId);
        return "common";
    }
}
